@extends('user')
@section('content')

    <!-- domain begin-->
    <div class="domain" id="head_domain" style="padding-top:250px;padding-bottom:120px;">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="row mt-5">
                        <div class="col-md-12">
                                <div class="bg-info text-white text-center pt-1  mb-2">
                                    <p>{{$basic->exchange_confirm_text2}}</p>
                                </div>

                        </div>
                        <div class="col-md-12">
                                <div class="card">
                                    <div class="card-header text-center">
                                        <h4>{{$basic->exchange_confirm_text3}}</h4>
                                    </div>
                                    <div class="card-body">
                                        <p class="card-text text-center"> {{$basic->exchange_confirm_text4}} </p>
                                        <table class="table table-striped text-center">
                                            <tbody>
                                            <tr>
                                                <th>
                                                    <h3 class="text-danger">{{ $exchange['send_amount'] }} {{ $exchange->send_method->name }} <i class="fa fa-exchange"></i> {{ $exchange['receive_amount'] }} {{ $exchange->receive_method->name }} </h3>
                                                </th>
                                            </tr>
                                            <tr>
                                                <th><h5>@lang('Please send ') <span class="text-danger">{{ round(($exchange->send_amount+ $exchange->send_amount_charge), $basic->decimal)}} {{ $exchange->send_method->name }}</span>  To <span class="text-danger"> {{ $exchange->send_method->wallet_info }}</span></h5></th>
                                            </tr>

                                            </tbody>
                                        </table>
                                    </div>
                                </div>

                        </div>
                        <br>
                        <div class="col-md-12 pt-4">
                            <div class="card">
                                <div class="card-body">
                                    @include('errors.error')
                                    <form action="{{ route('exchange-confirm.ok')}}" method="POST">
                                        @csrf
                                        <div class="form-group">
                                            <label for="batch"><strong>@lang('Enter transaction number/batch')</strong></label>
                                            <input type="text" class="form-control form-control-lg" name="transaction_number" required>
                                        </div>
                                        <div class="form-group">
                                            <button type="submit" class="btn btn-success btn-lg btn-block"> @lang('Confirm Transaction') </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
    <!-- domain end -->

@endsection
